package com.dgut.smart_house.enums;

public enum  ResultCode {

    SUCCESS(200,"操作成功"),
    LOGIN_SUCCESS(201,"登录成功"),




    FAIL(300,"出现错误"),

    NO_AUTH_FAIL(301,"没有权限"),

    UNKNOWN_ACCOUNT(302,"用户名不存在"),

    PASSWORD_ERROR(303,"密码错误"),

    REGISTER_FAIL(304,"注册失败"),

    NO_LOGIN(305,"请先登录"),

    USER_EXIST(306,"用户名已存在")


    ;


    private int code;
    private String msg;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    ResultCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
